import request from '@/utils/request'

// 查询合同签署列表
export function listContractSigning(query) {
  return request({
    url: '/contract/contractSigning/list',
    method: 'get',
    params: query
  })
}

// 查询合同签署详细
export function getContractSigning(signingId) {
  return request({
    url: '/contract/contractSigning/' + signingId,
    method: 'get'
  })
}

// 新增合同签署
export function addContractSigning(data) {
  return request({
    url: '/contract/contractSigning',
    method: 'post',
    data: data
  })
}

// 修改合同签署
export function updateContractSigning(data) {
  return request({
    url: '/contract/contractSigning',
    method: 'put',
    data: data
  })
}

// 删除合同签署
export function delContractSigning(signingId) {
  return request({
    url: '/contract/contractSigning/' + signingId,
    method: 'delete'
  })
}
// 合同签署
export function signContractSigning(signingId) {
  return request({
    url: '/contract/contractSigning/signContractSigning/' + signingId,
    method: 'post'
  })
}
